﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BaoCaoTongHopTanXuatKhenThuong.aspx.cs"
    Inherits="AIC_PN.BaoCaoTongHopTanXuatKhenThuong" MasterPageFile="~/Site1.Master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">

    <script language="javascript" type="text/javascript">

        function PrintPage() {
            var printContent = document.getElementById('<%= formUpdate.ClientID %>');
            var printWindow = window.open("All Records", "Print Panel", 'left=50000,top=50000,width=0,height=0');
            printWindow.document.write(printContent.innerHTML);
            printWindow.document.close();
            printWindow.focus();
            printWindow.print();
        }
    </script>

    <table>
        <tr>
            <td valign="top">
                <div class="Form Tree">
                    <p>
                        Danh sách kỳ báo cáo</p>
                    <asp:CheckBoxList ID="chkKyBaoCao" runat="server">
                    </asp:CheckBoxList>
                </div>
            </td>
            <td valign="top">
                <div class="Form Update" runat="server" id="formUpdate">
                    <asp:GridView ID="grvData" runat="server" CssClass="ListTable" AutoGenerateColumns="false"
                        OnPreRender="grvData_PreRender">
                        <Columns>
                            <asp:BoundField HeaderText="Đơn vị" DataField="TenDV" />
                            <asp:BoundField HeaderText="Họ tên cán bộ" DataField="TenCanBo" />
                            <asp:BoundField HeaderText="Các năm được khen thưởng" DataField="TenDM" />
                        </Columns>
                    </asp:GridView>
                </div>
                <asp:Button ID="Button1" runat="server" Text="In báo cáo" CssClass="cmdBtn" OnClick="btnIn_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
